<!-- $Id: listTrackback.html 67 2011-03-26 13:06:51Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<script type="text/javascript">
function sortBy(order,sort){
	location.href = "?order="+order+"&sort="+sort;
}
</script>
<form method="post" action="__URL__/dropTrackback" name="listForm" onsubmit="return confirmSubmit_(this);">
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
      <tbody>
        <tr>
          <th><input type="checkbox" id="chkOpenAll" onclick="openAll(this)" />
            <a href="javascript:void(0)" onclick="javascript:sortBy('tb_id','<if condition="$sort eq asc">desc<else/>asc</if>');" title="点击对列表排序">编号</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
		<th>引用对象</th>
	<th><a href="javascript:void(0)" onclick="javascript:sortBy('tb_visible','<if condition="$sort eq asc">desc<else/>asc</if>');" title="点击对列表排序">状态</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
		<th>标题</th>
		<th>来源</th>
		<th>IP地址</th>
		<th>时间</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
            <td style="background-color: rgb(255, 255, 255);" width="7%" align="center"><input type="checkbox" id="key" name="key[]" onclick="openAll()" value="{$vo.tb_id}" />{$vo.tb_id}</td>
           <td style="background-color: rgb(255, 255, 255);" align="left" width="20%"><span><a href="{&blog_domain}posts/{$vo.posts_url}/" target="_blank">{$vo.posts_title|msubstr=0,15}</a></span></td>
		   <td style="background-color: rgb(255, 255, 255);" align="center" width="6%"><span><eq name='vo.tb_visible' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else/><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></eq></span></td>
		   <td style="background-color: rgb(255, 255, 255);" align="left" width="20%"><span><a href="{$vo.tb_url}" target="_blank">{$vo.tb_title|msubstr=0,15}</a></span></td>
            <td style="background-color: rgb(255, 255, 255);" align="left" width="17%"><span><a href="{$vo.tb_url}" target="_blank">{$vo.tb_blogname}</a></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="14%"><span>{$vo.tb_ip}</span></td>  
            <td style="background-color: rgb(255, 255, 255);" align="center" ><span>{$vo.tb_addtime|date='Y-m-d H:i:s',###}</span></td>     
          </tr>
        </volist>
        <tr>
          <td colspan="2">
		<select name="act" onchange="changeAction()">
        <option value="">请选择...</option>
		<option value="visible">显示</option>
		<option value="unvisible">隐藏</option>
        <option value="drop">移除</option>
		</select>
		  <input type="submit" value=" 确定 " id="btnSubmit" name="btnSubmit" class="button" disabled="true" /></td>
          <td style="background-color: rgb(255, 255, 255);" colspan="5" align="right" nowrap="true"><div class="{$pagestyle}" id="turn-page">{$page}</div></td>
        </tr>
      </tbody>
    </table>
  </div>
</form>

<script language="JavaScript">
function confirmSubmit_(frm, ext)
{
	if (frm.elements['act'].value == 'visible')
	{
	  
		return confirm("- 您确实要显示选中的引用记录吗?");
	  
	}
	else if (frm.elements['act'].value == 'unvisible')
	{
	  
		return confirm("- 您确实要隐藏选中的引用记录吗?");
	  
	}
	else if (frm.elements['act'].value == 'drop')
	{
	  
		return confirm("- 彻底删除引用记录将无法恢复.\r\n- 您确实要删除选中的引用记录吗?");
	  
	}
	else if (frm.elements['act'].value == '')
	{
		return false;
	}
	else
	{
		return true;
	}
}

function changeAction()
{
	var frm = document.forms['listForm'];
	
	if (!document.getElementById('btnSubmit').disabled && confirmSubmit_(frm, false))
	{
		frm.submit();
	}
}
</script>
<include file="Public:pagefooter"/> 